﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SqlCe4Mvc3Application1.Models
{
    public partial class _Orchard_Users_RegistrationSettingsPartRecord : RaisingStudio.Data.Expressions.TableExpression, RaisingStudio.Data.Expressions.IQueryExpression<_Orchard_Users_RegistrationSettingsPartRecord>
    {
        #region Constructor (s) / Destructor
        /// <summary>
        /// Constructor (s) / Destructor.
        /// </summary>
        public _Orchard_Users_RegistrationSettingsPartRecord() : base("Orchard_Users_RegistrationSettingsPartRecord")
        {
        }
        #endregion
        #region Members
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _Id = "Id";
        public RaisingStudio.Data.Expressions.ColumnExpression Id { get { return _Id; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UsersCanRegister = "UsersCanRegister";
        public RaisingStudio.Data.Expressions.ColumnExpression UsersCanRegister { get { return _UsersCanRegister; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UsersMustValidateEmail = "UsersMustValidateEmail";
        public RaisingStudio.Data.Expressions.ColumnExpression UsersMustValidateEmail { get { return _UsersMustValidateEmail; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ValidateEmailRegisteredWebsite = "ValidateEmailRegisteredWebsite";
        public RaisingStudio.Data.Expressions.ColumnExpression ValidateEmailRegisteredWebsite { get { return _ValidateEmailRegisteredWebsite; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _ValidateEmailContactEMail = "ValidateEmailContactEMail";
        public RaisingStudio.Data.Expressions.ColumnExpression ValidateEmailContactEMail { get { return _ValidateEmailContactEMail; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _UsersAreModerated = "UsersAreModerated";
        public RaisingStudio.Data.Expressions.ColumnExpression UsersAreModerated { get { return _UsersAreModerated; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _NotifyModeration = "NotifyModeration";
        public RaisingStudio.Data.Expressions.ColumnExpression NotifyModeration { get { return _NotifyModeration; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _NotificationsRecipients = "NotificationsRecipients";
        public RaisingStudio.Data.Expressions.ColumnExpression NotificationsRecipients { get { return _NotificationsRecipients; } }
        public static readonly RaisingStudio.Data.Expressions.ColumnExpression _EnableLostPassword = "EnableLostPassword";
        public RaisingStudio.Data.Expressions.ColumnExpression EnableLostPassword { get { return _EnableLostPassword; } }

		#endregion

        public static implicit operator RaisingStudio.Data.Expressions.ConditionExpression(_Orchard_Users_RegistrationSettingsPartRecord Orchard_Users_RegistrationSettingsPartRecord)
        {
            return new RaisingStudio.Data.Expressions.ConditionExpression();
        }

        public RaisingStudio.Data.Expressions.ConditionExpression OrderBy(RaisingStudio.Data.Expressions.ColumnExpression columnExpression)
        {
             RaisingStudio.Data.Expressions.ConditionExpression conditionExpression = this;
             return conditionExpression.OrderBy(columnExpression);
        }

        public RaisingStudio.Data.Expressions.ConditionExpression OrderBy(RaisingStudio.Data.Expressions.ColumnExpression columnExpression, RaisingStudio.Data.Expressions.SortingDirection sortingDirection)
        {
            RaisingStudio.Data.Expressions.ConditionExpression conditionExpression = this;
            return conditionExpression.OrderBy(columnExpression, sortingDirection);
        }

        public RaisingStudio.Data.Expressions.ConditionExpression Where(RaisingStudio.Data.Expressions.ExpressionElement expressionElement)
        {
            RaisingStudio.Data.Expressions.ConditionExpression conditionExpression = this;
            return conditionExpression.Where(expressionElement);
        }

        public static implicit operator RaisingStudio.Data.Expressions.ColumnExpressionCollection(_Orchard_Users_RegistrationSettingsPartRecord Orchard_Users_RegistrationSettingsPartRecord)
        {
            return new RaisingStudio.Data.Expressions.ColumnExpressionCollection(Orchard_Users_RegistrationSettingsPartRecord);
        }

        public static implicit operator RaisingStudio.Data.Expressions.ColumnExpression[](_Orchard_Users_RegistrationSettingsPartRecord Orchard_Users_RegistrationSettingsPartRecord)
        {
            return new RaisingStudio.Data.Expressions.ColumnExpression[]
                        {                            
                            Orchard_Users_RegistrationSettingsPartRecord.Id,
                            Orchard_Users_RegistrationSettingsPartRecord.UsersCanRegister,
                            Orchard_Users_RegistrationSettingsPartRecord.UsersMustValidateEmail,
                            Orchard_Users_RegistrationSettingsPartRecord.ValidateEmailRegisteredWebsite,
                            Orchard_Users_RegistrationSettingsPartRecord.ValidateEmailContactEMail,
                            Orchard_Users_RegistrationSettingsPartRecord.UsersAreModerated,
                            Orchard_Users_RegistrationSettingsPartRecord.NotifyModeration,
                            Orchard_Users_RegistrationSettingsPartRecord.NotificationsRecipients,
                            Orchard_Users_RegistrationSettingsPartRecord.EnableLostPassword,
                        };
        }

        public RaisingStudio.Data.Expressions.ColumnExpressionCollection Except(params RaisingStudio.Data.Expressions.ColumnExpression[] columns)
        {
            RaisingStudio.Data.Expressions.ColumnExpressionCollection columnExpressionCollection = this;
            return columnExpressionCollection.Except(columns);
        }

    
        public static implicit operator RaisingStudio.Data.Expressions.QueryExpression<_Orchard_Users_RegistrationSettingsPartRecord>(_Orchard_Users_RegistrationSettingsPartRecord Orchard_Users_RegistrationSettingsPartRecord)
        {
            return new RaisingStudio.Data.Expressions.QueryExpression<_Orchard_Users_RegistrationSettingsPartRecord>(Orchard_Users_RegistrationSettingsPartRecord);
        }


        #region IQueryExpression<_Orchard_Users_RegistrationSettingsPartRecord> 成员

        _Orchard_Users_RegistrationSettingsPartRecord RaisingStudio.Data.Expressions.IQueryExpression<_Orchard_Users_RegistrationSettingsPartRecord>.Value
        {
            get { return Orchard_Users_RegistrationSettingsPartRecord._; }
        }

        #endregion

        #region IQueryExpression 成员

        RaisingStudio.Data.Expressions.TableExpression RaisingStudio.Data.Expressions.IQueryExpression.Table
        {
            get { return this; }
        }

        RaisingStudio.Data.Expressions.ConditionExpression RaisingStudio.Data.Expressions.IQueryExpression.Condition
        {
            get { return this; }
        }

        RaisingStudio.Data.Expressions.ColumnExpressionCollection RaisingStudio.Data.Expressions.IQueryExpression.Columns
        {
            get { return null; }
        }

        #endregion
    }

    partial class Orchard_Users_RegistrationSettingsPartRecord
    {
        #region Members
        public static readonly _Orchard_Users_RegistrationSettingsPartRecord _ = new _Orchard_Users_RegistrationSettingsPartRecord();
		#endregion
    }
}
